package com.rmi.impl;

import com.api.IProductService;
import com.api.IUserService;
import com.rmi.anno.client.Remote;
import com.rmi.anno.server.RemoteService;
@RemoteService(serviceInterface=IProductService.class)
public class IProductServiceImpl implements IProductService {

	@Remote
	private IUserService IUserService;
	@Override
	public String query(String id) {
		return "query "+id+" ,"+IUserService.getUserByName("张三");
	}

}
